import common from "@/validator/common";

const day = [
  common.getRequiredRule('星期几'),
  ...common.getPositiveIntegerRules('星期几')
]

const hours = [
  common.getRequiredRule('节次学时'),
  ...common.getPositiveIntegerRules('星期几')
]

const startNum = [
  common.getRequiredRule('起始节次数'),
  ...common.getPositiveIntegerRules('起始节次数')
]

const endNum = [
  common.getRequiredRule('终止节次数'),
  ...common.getPositiveIntegerRules('终止节次数')
]

export default {
  insertRules: {
    day,
    hours,
    startNum,
    endNum
  },
  updateRules: {
    day,
    hours,
    startNum,
    endNum
  }
}
